with open("results/B_imagenet22k_hrnet.txt", "r") as file:
    line = file.readline()
    row = 0
    max_delta_m, max_row = 0.0, 0
    while line:
        if line.startswith("delta-m:"):
            pre, num = line.split()
            if max_delta_m < float(num):
                max_delta_m = float(num)
                max_row = row
        line = file.readline()
        row += 1

print(f"max Delat-m: {max_delta_m} in line {max_row}")
